# 优先级判断
# 示例1
c = 10 + 2 * 10
print(c) # 30

# 示例2。算术运算优先级高于位运算
c = 16 * 1 >> 2
print(c) # 12

# 示例3。左移运算优先级高于位运算
c = 4 | 1 << 3
print(c) # 12

# 示例4。&的优先级高于|
c = 4 | 2 & 1
print(c) # 4

# 示例5。位操作高于逻辑运算，先2|4（结果是6），再判断>5; not 4 > 5 and 6 > 5
c = not 4 > 5 and 2 | 4 > 5
print(c) # True

if 4 > 5:
    print('4>5')
elif 4 < 5:
    print('4<5')
else:
    print('4=5')